package com.example.diamond.demo.service;

import com.example.diamond.demo.bean.User;
import com.example.diamond.demo.dao.UserMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("userService")
public class UserService {
    @Resource
    private UserMapper userMapper;
    @Transactional
    public User findUser() {
        return userMapper.findUser();
    }
}
